﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using TeBigScreenWpf.ViewModels;

namespace TeBigScreenWpf.Pages
{
    public static class PageExtensions
    {
        public static void ExtInit(this Page p)
        {
            p.DataContext = vmGlobal.vmPage.Value;

            p.FontFamily = Application.Current.FindResource("font_content") as FontFamily;
        }
    }
}